/*******************************************************************************
 * Size: 36 px
 * Bpp: 4
 * Opts:
 ******************************************************************************/

#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif

#ifndef FONT_AGENCYB_36
#define FONT_AGENCYB_36 1
#endif

#if FONT_AGENCYB_36

/*-----------------
 *    BITMAPS
 *----------------*/

/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
	/* U+002D "-" */
	0x7b, 0xbb, 0xbb, 0xbb, 0x8a, 0xff, 0xff, 0xff,
	0xfb, 0xaf, 0xff, 0xff, 0xff, 0xba, 0xff, 0xff,
	0xff, 0xfb,

	/* U+0041 "A" */
	0x0, 0x0, 0x1, 0xff, 0xff, 0x60, 0x0, 0x0,
	0x0, 0x0, 0x4, 0xff, 0xff, 0x90, 0x0, 0x0,
	0x0, 0x0, 0x7, 0xff, 0xff, 0xc0, 0x0, 0x0,
	0x0, 0x0, 0xa, 0xff, 0xff, 0xf0, 0x0, 0x0,
	0x0, 0x0, 0xe, 0xff, 0xff, 0xf2, 0x0, 0x0,
	0x0, 0x0, 0x1f, 0xff, 0xff, 0xf5, 0x0, 0x0,
	0x0, 0x0, 0x4f, 0xff, 0xff, 0xf8, 0x0, 0x0,
	0x0, 0x0, 0x7f, 0xfe, 0xbf, 0xfb, 0x0, 0x0,
	0x0, 0x0, 0xaf, 0xfc, 0x9f, 0xfe, 0x0, 0x0,
	0x0, 0x0, 0xdf, 0xf9, 0x6f, 0xff, 0x10, 0x0,
	0x0, 0x0, 0xff, 0xf7, 0x3f, 0xff, 0x40, 0x0,
	0x0, 0x3, 0xff, 0xf4, 0x1f, 0xff, 0x70, 0x0,
	0x0, 0x6, 0xff, 0xf2, 0xe, 0xff, 0xa0, 0x0,
	0x0, 0x9, 0xff, 0xf0, 0xc, 0xff, 0xd0, 0x0,
	0x0, 0xc, 0xff, 0xc0, 0x9, 0xff, 0xf0, 0x0,
	0x0, 0xf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, 0x0, 0x0, 0xdf, 0xff, 0x70,
	0x1f, 0xff, 0xf5, 0x0, 0x0, 0x8f, 0xff, 0xd0,
	0x6f, 0xff, 0xf0, 0x0, 0x0, 0x3f, 0xff, 0xf2
};

/*---------------------
 *  GLYPH DESCRIPTION
 *--------------------*/

static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
	{ .bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0 } /* id = 0 reserved */,
	{ .bitmap_index = 0, .adv_w = 177, .box_w = 9, .box_h = 4, .ofs_x = 1, .ofs_y = 9 },
	{ .bitmap_index = 18, .adv_w = 260, .box_w = 16, .box_h = 28, .ofs_x = 0, .ofs_y = 0 },
	{ .bitmap_index = 242, .adv_w = 268, .box_w = 15, .box_h = 28, .ofs_x = 1, .ofs_y = 0 },
	{ .bitmap_index = 452, .adv_w = 248, .box_w = 15, .box_h = 28, .ofs_x = 1, .ofs_y = 0 },
	{ .bitmap_index = 662, .adv_w = 266, .box_w = 15, .box_h = 28, .ofs_x = 1, .ofs_y = 0 },
	{ .bitmap_index = 872, .adv_w = 225, .box_w = 14, .box_h = 28, .ofs_x = 0, .ofs_y = 0 },
	{ .bitmap_index = 1068, .adv_w = 253, .box_w = 16, .box_h = 28, .ofs_x = 0, .ofs_y = 0 }
};

/*---------------------
 *  CHARACTER MAPPING
 *--------------------*/

static const uint16_t unicode_list_0[] = {
	0x0, 0x14, 0x16, 0x1e, 0x25, 0x27, 0x2b
};

/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] = {
	{ .range_start = 45, .range_length = 44, .glyph_id_start = 1, .unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 7, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY }
};

/*--------------------
 *  ALL CUSTOM DATA
 *--------------------*/

#if LV_VERSION_CHECK(8, 0, 0)
/*Store all the custom data of the font*/
static lv_font_fmt_txt_glyph_cache_t cache;
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
	.glyph_bitmap = glyph_bitmap,
	.glyph_dsc = glyph_dsc,
	.cmaps = cmaps,
	.kern_dsc = NULL,
	.kern_scale = 0,
	.cmap_num = 1,
	.bpp = 4,
	.kern_classes = 0,
	.bitmap_format = 0,
#if LV_VERSION_CHECK(8, 0, 0)
	.cache = &cache
#endif
};

/*-----------------
 *  PUBLIC FONT
 *----------------*/

/*Initialize a public general font descriptor*/
#if LV_VERSION_CHECK(8, 0, 0)
const lv_font_t font_agencyb_36 = {
#else
lv_font_t font_agencyb_36 = {
#endif
	.get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt, /*Function pointer to get glyph's data*/
	.get_glyph_bitmap = lv_font_get_bitmap_fmt_txt, /*Function pointer to get glyph's bitmap*/
	.line_height = 28,                              /*The maximum line height required by the font*/
	.base_line = 0,                                 /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
	.subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0)
	.underline_position = -5,
	.underline_thickness = 2,
#endif
	.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
};

#endif /*#if FONT_AGENCYB_36*/
